package com.github.vortexdev.yachtclub.services;

import com.github.vortexdev.yachtclub.models.Owner;
import com.github.vortexdev.yachtclub.repository.OwnerRepository;

import java.util.List;

/**
 * @author Sergey Parakhin (sergey.parahin@gmail.com)
 */
public class OwnerService {
    private OwnerRepository ownerRepository;

    public void setOwnerRepository(OwnerRepository ownerRepository) {
        this.ownerRepository = ownerRepository;
    }

    public List<Owner> getOwners() {
        return ownerRepository.findAll();
    }
}
